<include file="Public:header" />
<div id="zoneHeader">
    <h2>广告主客服管理</h2>
    <ul>
        <li><button type="button" action="addAderService">增加广告主客服</button></li>
    </ul>
</div><!--/#zoneHeader-->
<div id="zoneBody">
    <div id="zoneBodySearch">
        <form id="formSearch" action="?m={$Think.const.MODULE_NAME}">
            <input type="hidden" name="sort" />
            <input type="hidden" name="sortdir" />

            <ul>
                <li><b>UID：</b><input type="text" name="uid" class="fW80p" /></li>
                <li><b>登陆名称：</b><input type="text" name="user_name" class="fW100p" /></li>
                <li>
                <select name="status">
                    <option value="">登陆状态</option>
                    <volist name=":C('LOGIN_STATUS')" id="vo">
                    <option value="{$key}">{$vo}</option>
                    </volist>
                </select>
                </li>
                <li><button type="button" id="as" class="btnSearch">查询</button></li>
                <li><button type="button" class="btnResetForm">清空表单</button></li>
            </ul>
        </form>
    </div><!--/#zoneBodySearch-->
    <div id="zoneBodyContent">
        <table class="table2">
            <thead>
                <tr>
                    <th class="tAr"><a href="javascript:;" sort="uid">UID</a></th>
                    <th><a href="javascript:;" sort="user_name">登陆名称</a></th>
                    <th>真实姓名</th>
                    <th>注册时间/注册IP</th>
                    <th><a href="javascript:;" sort="last_login_time">最后登陆时间/IP</a></th>
                    <th class="tAr"><a href="javascript:;" sort="login_num">登陆次数</a></th>
                    <th><a href="javascript:;" sort="status">状态</a></th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <volist name="page.record" id="vo">
                <tr class="tAr">
                    <td class="tAr">{$vo.uid}</td>
                    <td class="tAl"><a href="javascript:;" action="modifyUser" data-id="{$vo.uid}" data-type="{$vo.type}">{$vo.user_name}</a></td>
                    <td class="tAl">{$vo.contact}</td>
                    <td class="tAl">{$vo['reg_time']} / {$vo.reg_ip}</td>
                    <td class="tAl">{$vo['last_login_time']} / {$vo.last_login_ip}</td>
                    <td class="tAr">{$vo.login_num}</td>
                    <td class="tAl">{$vo.status|getLoginStatusCn}</td>
                    <td class="tAl tAction">
                        <a href="javascript:;" action="modifyUser" data-id='{$vo.uid}' data-type='{$vo.type}' title="编辑广告主客服信息">编</a>
                        <a href="javascript:;" action="delUser" data-id='{$vo.uid}' data-type='{$vo.type}' title="删除广告主客服">删</a>
                    </td>
                </tr>
                </volist>
            </tbody>
        </table>
    </div><!--/#zoneBodyContent-->
</div><!--/#zoneBody-->
<script>
$(function() {
    User.edit.init();
});
</script>
<div id="zoneFooter">{$page|uiGetPage}</div><!--/#zoneFooter-->
<include file="Public:footer" />
